<?php
session_start ();
// 判断用户是否已经登录
if (! isset ( $_SESSION ["userinfo"] ) and empty ( $_SESSION ["userinfo"] ["userid"] )) {
	header ( "location:../index.php" );
	session_unset ();
	session_destroy ();
	exit ();
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="../PersonalPhoto/Images/web_title.ico" rel="icon"
	type="image/x-icon" />
<link href="../Serve/Resource/style/ServeIndex.css" rel="stylesheet"
	type="text/css" />
<title>服务</title>
</head>
<body>
<?php
echo "<script>alert('亲爱的" . $_SESSION ["userinfo"] ["username"] . "，服务功能暂未开放，目前仅供浏览使用，敬请期待！！！')</script>";
require_once '../tools/SqlHelper.class.php';
$user_id = $_SESSION ["userinfo"] ["userid"];
$myname = $_SESSION ["userinfo"] ["username"];
$sql = "select * from `personal_data_tb` where `user_id`='$user_id'";
// 创建一个SqlHelper对象
$sqlHelper = new SqlHelper ();
$row = $sqlHelper->execute_dql ( $sql );
$res = mysql_fetch_array ( $row );
$ps_Icon = $res ['ps_Icon'];
$sqlHelper->close_connect ();
?>
	<div class="yy_header">
		<div class="yy_nav">
			<span class="logo" title="找对象，上友缘网！"
				style="background-image: url('../PersonalPhoto/Images/logo.png');"><a
				href="#"></a></span>
			<ul>
				<li><a class="a_01" href="../Space/SpaceIndex.php"><span
						style="background-image: url('../PersonalPhoto/Images/Space.png');"></span>空间</a></li>
				<li><a class="a_01" href="../SearchMargin/SearchMarginIndex.php"><span
						style="background-image: url('../PersonalPhoto/Images/Search.png');"></span>搜缘</a></li>
				<li><a class="a_01 a_out" href="#"><span
						style="background-image: url('../PersonalPhoto/Images/Serve.png');">
					</span>服务</a></li>
				<li><a class="a_01" href="../Mailbox/MailboxIndex.php"><span
						style="background-image: url('../PersonalPhoto/Images/Mailbox.png');"></span>信箱</a></li>
			</ul>
			<div id="mineInfo" class="set_up ">
				<em class="tipParent"></em> <span style="font-size: 16px;"
					title="<?php echo $_SESSION ["userinfo"] ["username"];?>">你好，<?php echo $_SESSION ["userinfo"] ["username"];?>
					<a style="font-size: 12px;" href="../index.php?exit=1">安全退出</a></span>
			</div>
		</div>
	</div>

	<div id="main" class="yy_main">
		<div class="yy_main_L">
			<div class="own_menu">
				<a target="new" class="wy_head"
					href="../PersonalSpace/PersonalSpace.php?user_id=<?php echo $user_id;?>"><img
					alt="头像" width="84" height="84"
					src=<?php
					if ($ps_Icon == "0") {
						$user_img_path = "../PersonalPhoto/Images/nohead_new.jpg";
						echo $user_img_path;
					} else {
						$path = "../PersonalPhoto/" . $user_id . "/";
						$user_image_name = $path . $ps_Icon;
						echo "'" . $user_image_name . "'";
					}
					?> /></a> <a target="new" class="nickname"
					href="../PersonalSpace/PersonalSpace.php?user_id=<?php echo $user_id;?>"><?php echo $myname;?></a>
				<a target="new" class="preview blue"
					href="../PersonalSpace/PersonalSpace.php?user_id=<?php echo $user_id;?>">预览我的资料</a>
				<ul>
					<li><a target="new" class="blue"
						style="font-size: 20px; width: 120px;"
						href="http://android.myapp.com/myapp/detail.htm?apkName=com.zhuifeng.love2048">寻爱游戏</a></li>
				</ul>
			</div>

			<div class="menu_nav_survice">
				<dl>
					<dt>
						<strong>我的服务</strong>
					</dt>
					<dd>
						<a href="#"> <span>桃花会员： <font class="gray">暂未开通</font>
						</span> <em></em>
						</a>
					</dd>
					<dd class="height_dd">
						<a href="#" class="hideMineRank"> <span>抢镜头：<font class="gray">暂未开通</font></span>
							<b class="mark_up showAddBtn">开通</b> <em></em>
						</a>
					</dd>
					<dd>
						<a href="#"> <span>私人定制：<font class="gray">暂未开通</font></span> <em></em>
						</a>
					</dd>
					<dd class="consumer">
						<a href="#"><span>消费记录：</span><b class="click">点击查看</b><em></em></a>
					</dd>
				</dl>
			</div>
		</div>
		<div class="entrance"></div>
		<!--支付选项-->
		<div class="pay_tab">
			<ul>
				<li class="pay_select_item no_li"><a href="ServeIndex_monthUser.php"
					target="frm">桃花会员</a></li>
				<li class="pay_select_item"><a href="ServeIndex_beanUser.php"
					target="frm">豆币充值</a></li>
				<!-- <li class="pay_select_item"><a href="ServeIndex_spotlight.php"
					target="frm">抢镜头</a></li> -->
				<li class="pay_select_item"><a href="ServeIndex_personal.php"
					target="frm">私人定制</a></li>
				<li class="pay_select_item last"><a href="ServeIndex_card.php"
					target="frm">VIP真情卡</a></li>
			</ul>
			<div class="tab_item" style="display: block;">
				<iframe id="frm" name="frm" frameborder="0" height="800"
					src="ServeIndex_monthUser.php"></iframe>
			</div>
		</div>
	</div>
	<div class="clear"></div>
</body>
</html>